Chart for WinRT > Chart Features > Performance Optimization > DirectX Rendering |
When performance is your number one priority and you're rendering a large number of points, set the RenderMode property to enable DirectX rendering. DirectX rendering allows you to render large amounts of data, up to 500,000 data points, in seconds.
By default, the C1Chart control renders data points as native XAML elements. DirectX rendering, though, uses DIrect2D graphics routines that integrate into XAML by taking advantage of Windows 8 capabilities.
Some features are not supported with DirectX rendering, such as special chart types (Pie, Bubble, Radar, Gantt, Candle), as well as the PlotElementLoaded event. The event will no longer fire in order to give the fastest rendering.
To use DirectX rendering, simply set the RenderMode property to Direct2D:
XAML Markup |
Copy Code
|
---|---|
<Chart:C1Chart ChartType="XYPlot"> <Chart:C1Chart.Data> <Chart:ChartData ItemsSource="{Binding MyPoints}"> <Chart:XYDataSeries RenderMode="Direct2D" XValueBinding="{Binding XValue}" ValueBinding="{Binding Value}"/> </Chart:ChartData> </Chart:C1Chart.Data> </Chart:C1Chart> |